package cn.denny.designpattern.responsibility;

public class SubHandler2 extends AbstractHandler{

	@Override
	public void handlerRequest(int request) {
		if(request < 20 && request >=10){
			System.out.println("subHandler2 handler the Request");
		}else{
			if(subHanler != null){
				subHanler.handlerRequest(request);
			}else{
				System.out.println("request not be handle");
			}
		}
	}

}
